package com.yxym.homework;


import org.junit.Test;


class Solution {
    public static void main(String[] args) {

    }
    public int[] runningSum(int[] nums) {
        for(int i = 0; i < nums.length; i++){
            nums[i] += nums[i-1];
        }
        return nums;
    }
}
